#include <REGX52.H>
sbit LED1 = P0 ^ 0;
sbit LED2 = P0 ^ 6;
void delay_ms(unsigned int ms)
{
    unsigned int i, j;
    for (i = 0; i < ms; i++)
    {
        for (j = 0; j < 123; j++)
            ;
    }
}

void main()
{
    LED1 = 1;
    LED2 = 1;
    while (1)
    {
        LED1 = ~LED1;
        delay_ms(150);
        LED2 = ~LED2;
        delay_ms(150);
    }
}